package org.dromara.manu.domain.bo;

import org.dromara.manu.domain.ManuPubToolScreen;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 车间屏幕管理单业务对象 manu_pub_tool_screen
 *
 * @author Bin Liu
 * @date 2024-07-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ManuPubToolScreen.class, reverseConvertGenerate = false)
public class ManuPubToolScreenBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 屏幕名
     */
    @NotBlank(message = "屏幕名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 描述
     */
    @NotBlank(message = "描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String description;

    /**
     * 内容类别
     */
    @NotBlank(message = "内容类别不能为空", groups = { AddGroup.class, EditGroup.class })
    private String category;

    /**
     * 文件编号
     */
    @NotNull(message = "文件编号不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long fileId;


}
